package org.xb.Demo02;

/**
 * @Author
 * @Description 同事去观察NBA的人
 * @Date created in 16:59 2023/12/11
 */
public class NBAObserver implements Observer{
    private String name;

    public NBAObserver(String name) {
        this.name = name;
    }

    @Override
    public void Update(String message) {
        System.out.println(name + " 正在看NBA " + message);
    }
}
